第10步time 的参数值为 7。可以通过更改第二个参数值来更改时间。

记住,str() 让我们能够将一个字符串和一个整数组合起来。

  • .Text() 指令中的字符串更改为 "Party starts at " + str(time)。
  • 将x坐标更改为 0 ,将y坐标更改为 150
  • 将颜色更改为 "green"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)